package com.spc.car.data.mapper.project;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spc.car.data.domain.project.dto.GetProjectRelationshipsDTO;
import com.spc.car.data.domain.project.po.GetProjectRelationshipsPO;
import com.spc.car.data.entity.project.ProjectTenderingProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 招标项目与项目关系表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-04-09
 */
public interface ProjectTenderingProjectMapper extends BaseMapper<ProjectTenderingProject> {

    /**
     * 获取与招标项目有关的项目列表
     * @param pageSize
     * @param po
     * @param startingPage
     * @return
     */
    List<GetProjectRelationshipsDTO> listProjectRelationships(@Param("pageSize") Long pageSize, @Param("po") GetProjectRelationshipsPO po, @Param("startingPage") Long startingPage);

    /**
     * 获取与招标项目有关的项目列表数量
     * @param po
     * @return
     */
    Long listProjectRelationshipsCount(@Param("po") GetProjectRelationshipsPO po);
}
